// 设置主题
export const toggleSetting = (payload: string) => ({
    type: 'TOGGLE_SETTING',
    payload,
});

// 设置布局
export const toggleLayout = (payload: string) => ({
    type: 'TOGGLE_LAYOUT',
    payload,
})
// 设置色弱模式
export const toggleWeak = (payload: boolean) => ({
    type: 'TOGGLE_WEAK',
    payload,
})

// 设置黑白模式
export const toggleGray = (payload: boolean) => ({
    type: 'TOGGLE_GRAY',
    payload,
})

// 设置主题色
export const togglePrimary = (payload: string) => ({
    type: 'TOGGLE_PRIMARY',
    payload,
})

// 设置是否显示logo
export const toggleShowLogo = (payload: boolean) => ({
    type: 'TOGGLE_SHOWLOGO',
    payload,
})

// 设置顶部进度条
export const toggleTopProgress = (payload: boolean) => ({
    type: 'TOGGLE_TOPPRPGRESS',
    payload,
})

// 设置多标签页
export const toggleMultiTab = (payload: boolean) => ({
    type: 'TOGGLE_MULTITAB',
    payload,
})

// 显示页脚
export const toggleFooter = (payload: boolean) => ({
    type: 'TOGGLE_FOOTER',
    payload,
})

// 显示面包蟹
export const toggleBreadcrumb = (payload: boolean) => ({
    type: 'TOGGLE_BREADCRUMB',
    payload,
})

// 设置面包屑图标
export const toggleBreadcrumbIcon = (payload: boolean) => ({
    type: 'TOGGLE_BREADCRUMBICON',
    payload,
})

// 显示水印
export const toggleWaterMark = (payload: boolean) => ({
    type: 'TOGGLE_WATERMARK',
    payload,
})

// 设置主题颜色以及主题icon
export const toggleThemes = (payload: any) => ({
    type: 'TOGGLE_THEMES',
    payload,
})